package test.action;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


public class MinusAction implements Super{
	public String actionPro(HttpServletRequest request,
							HttpServletResponse response) 
	    throws ServletException, IOException {
			int num1 = Integer.parseInt(request.getParameter("num1"));
			int num2 = Integer.parseInt(request.getParameter("num2"));
			int result = num1 - num2;
			request.setAttribute("result", result);
			return "/1017/result.jsp";

	}
}
	

